package cn.cs.fallback;

import cn.cs.client.RestCsProductClient;
import cn.cs.common.Page;

import cn.cs.pojo.CsProduct;
import cn.cs.vo.DmFloorItems;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Component
public class CsProductClientFallBack implements RestCsProductClient {


    @Override
    public CsProduct getCsProductById(Long id)throws Exception{
        return null;
    }

    @Override
    public List<CsProduct>	getCsProductListByMap(Map<String,Object> param)throws Exception{
        return null;
    }

    @Override
    public List<CsProduct> getHotCsProductList(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getCsProductCountByMap(Map<String,Object> param)throws Exception{
        return null;
    }

    @Override
    public Integer addCsProduct(CsProduct csProduct)throws Exception{
        return null;
    }

    @Override
    public Integer modifyCsProduct(CsProduct csProduct)throws Exception{
        return null;
    }

 /*   @Override
    public List<DmFloorItems> queryItemByFloor() throws Exception {
        return null;
    }

    @Override
    public List<CsProduct> queryItemByMonth(Map<String, Object> param) throws Exception {
        return null;
    }*/

    @Override
    public List<CsProduct> getCsProductListByMapForEs(@RequestParam Map<String, Object> param) throws Exception{
        return null;
    }

    @Override
    public Page<CsProduct> queryCsProductPage(@RequestParam  Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public int getProductSaleCountById(String id) throws Exception {
        return 0;
    }

}
